#!/usr/bin/env php
<?php

if (isset($argv[1])) {
    switch ($argv[1]) {
        case 'serve':
            echo "Development server started on http://127.0.0.1:8089/";
            passthru('php -S 127.0.0.1:8089');
            break;

        default:
            break;
    }

    exit;
}

echo <<<HELP
Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message

Available commands:
  serve                 Serve the application on the PHP development server
    serve:

HELP;
